package com.warehouse_management.purchase.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.warehouse_management.config.PageModel;
import com.warehouse_management.purchase.model.Brand;
import com.warehouse_management.purchase.model.ProductCondition;
import com.warehouse_management.purchase.model.Type;
import com.warehouse_management.purchase.model.TypeCondition;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PACKAGE_NAME: com.warehouse_management.purchase.service
 * @NAME: ProductTypeService
 * @USER: ZhouYongCheng
 * @DATE: 2022/10/3
 * @TIME: 2:53
 * @Description: 商品类型管理服务层
 */
@Service
public interface ProductTypeService extends IService<TypeCondition> {

    /**
     * 连小龙
     * 分页显示
     * @param product
     * @param pageModel
     * @return
     */
    PageModel<TypeCondition> PageTypePosition(TypeCondition type, PageModel<TypeCondition> pageModel);


    /**
     * 连小龙
     * 通过条件模糊查询
     * @return
     */
    public PageModel<TypeCondition> queryTypeListByCondition(TypeCondition type,PageModel<TypeCondition> pageModel);


    /**
     * 连小龙
     * 添加商品
     * @return
     */
    public int addType(TypeCondition type);

    /**
     * 连小龙
     * 修改商品
     * @return
     */
    public int updateType(TypeCondition type);

    /**
     * 连小龙
     * 修改商品状态
     * @return
     */
    public int updateTypeStatus(TypeCondition type);

    /**
     * 连小龙
     * 查询所有类型
     * @return
     */
    List<Type> queryType();

    /**
     * 连小龙
     * 查询所有品牌
     * @return
     */
    List<Brand> queryBrand();
}
